"""
功能描述 ：
编写人 ：
编写日期 ：
实现逻辑 ：
    1- ......
        1.1- ......
    2- ......
        2.1- ......
"""
#公共操作
# + 操作字符串、列表、元组
# str1 = 'aa'
# str2 = 'bb'
# str3 = str1 + str2
# print(str3)
# #列表
# list1 = [1,2,3]
# list2 = [4,5,6]
# list3 = list1 + list2
# print(list3)
# #元组
# t1 = (1,2,3)
# t2 = (4,5,6)
# t3 = t1 + t2
# print(t3)
# # "*"
# str1 = 'aa'
# print(str1 * 3)
#
# list1 = [1,2,3]
# print(list1 * 3)
#
# t1 = (1,2,3)
# print(t1 * 3)

#in或not in
# str1 = 'abcd'
# print('a' in str1)
# print('a' not in str1)
#
# list1 = ['a', 'b', 'c', 'd']
# print('a' in list1)
# print('a' not in list1)
#
# t1 = ('a', 'b', 'c', 'd')
# print('aa' in t1)
# print('aa' not in t1)
#公共操作
#len
# str1 = 'abcd'
# print(len(str1))
#
# list1 = list1 = [10, 20, 30, 40]
# print(len(list1))
#
# t1 = ( (10, 20, 30, 40, 50))
# print(len(t1))
#
# s1 = {10,20,30}
# print(len(s1))
#
# dict1 = {'name': 'Rose', 'age': 18}
# print(len(dict1))

#del 删除
# str1 = 'abcdefg'
# del str1
# print(str1)

# list1 = [10, 20, 30, 40]
# del(list1[0])
# print(list1)

#max中元素最⼤值
str1 = '123456789'
print(max(str1))
#min元素最⼩值

# list1 = [10, 20, 30, 40]
# print(min(list1))

#range
for i in range(7):
    print(i)
#容器类型转换
#tuple将某个序列转换成元组

list1 = [10,20,30,40,50,60]
s1 = {100, 200, 300, 400, 500}

print(tuple(list1))
print(tuple(s1))
#将某个序列转换成列表
t1 = ('a', 'b', 'c', 'd', 'e')
s1 = {100, 200, 300, 400, 500}
print(list(t1))
print(list(s1))
#将某个序列转换成集合
list1 = [10, 20, 30, 40, 50, 20]
t1 = ('a', 'b', 'c', 'd', 'e')
print(set(list1))
print(set(t1))